<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/WEB-INF/struts-tags.tld"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>欢迎访问产品运营互动中心！</title>
<%@ include file="/commons/include/head-meta.inc.jsp"%>
<link rel="stylesheet" type="text/css" href="<s:url value="/script/vTip/css/vtip.css"/>" />
<script type="text/javascript" src="<s:url value="/script/vTip/vtip-min.js"/>"></script>
<style type="text/css">
.validDateTr{
	color: red;
}
.validDateTr a:link{
	color: red;
}
.validDateTr a:visited{
	color: red;
}
</style>
<script type="text/javascript">

$(document).ready(function(){
	<s:if test="flowTaskForm.isPerson=='true'">
		$("#iTR2").css({background: "#B3DEF4"});
	</s:if>
	<s:else>
		$("#iTR3").css({background: "#B3DEF4"});
	</s:else>
});

function subNewBsReqForm(url){
	var dForm=document.forms[0];
	dForm.action=url;
	dForm.submit();
}
</script>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">

<table width="980" border="0" cellspacing="0" cellpadding="0" align="center">
		<tr>
			<td>
			<table width="100%" border="0" cellpadding="0" cellspacing="0"
				background="<s:url value="/images/new/gxzl_index_2.gif"/>">
				<tr>
					<td width="20" height="32">&nbsp;</td>
					<td width="20"><img
						src="<s:url value="/images/new/dq_dot.gif"/>" width="15"
						height="12" /></td>
					<td>当前位置：业务需求交互单-
						<c:if test="${flowTaskForm.isPerson eq true}">您的已办单</c:if>
						<c:if test="${flowTaskForm.isPerson eq false}">所有需求单</c:if>
					</td>
				</tr>
			</table>
			</td>
		</tr>
	<tr>
		<td background="<s:url value="/images/home_4a.gif"/>">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">
			<tr>
				<td width="20%" valign="top">
				<table width="100%" height="400"  border="0" cellspacing="0" cellpadding="0"
					align="center" bgcolor="#FFFFFF">
					<tr>
						<td width="240" valign="top" class="leftbg">
						<%@ include file="/commons/include/request_pvc_left.inc.jsp" %>
						</td>
						<td valign="top" align="center"><br>
					<table width="98%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td height="5">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td width="5" height="5"><img src="<s:url value="/images/cphdzx_tab1.gif"/>" width="5" height="5" /></td>
										<td class="tdborderup"><img src="<s:url value="/images/spacer.gif"/>" width="1" height="1" /></td>
										<td width="5"><img src="<s:url value="/images/cphdzx_tab2.gif"/>" width="5" height="5" /></td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td class="tdborderleftright">
							<form action="newBusinessReq_findHisAppReqList.action" method="post" style="margin: 0">
							<input id="flowTaskForm.isPerson" name="flowTaskForm.isPerson" type="hidden" value="${flowTaskForm.isPerson }"/>
							<table cellSpacing=0 cellPadding=0 style="margin-left: 8px;width: 98%">
								<tr>
									<td>需求单号：</td>
									<td><input name="flowTaskForm.reqCode" size="28" type="text" value="${flowTaskForm.reqCode}"/></td>
									<td>需求名称：</td>
									<td><input name="flowTaskForm.reqTitle" size="28" type="text" value="${flowTaskForm.reqTitle}"/></td>
								</tr>
								<tr>
									<td>发 起 人：</td>
									<td><input name="flowTaskForm.startUser" size="28"  type="text" value="${flowTaskForm.startUser}"/></td>
									<td>发起部门：</td>
									<td>
										<select name="flowTaskForm.startDept" style="width:195px">
											<option value="">-=请选择发起部门=-</option>
											<c:forEach var="shortName" items="${listShortName}">
												<option value="${shortName}" <c:if test="${shortName eq flowTaskForm.startDept}"> selected="selected"</c:if>>${shortName}</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								<tr>
									<td>业务标签：</td>
									<td><input name="flowTaskForm.businessTag" size="28"  type="text" value="${flowTaskForm.businessTag}"/></td>
									<td>产品经理：</td>
									<td><input name="flowTaskForm.prodPerson" size="28"  type="text" value="${flowTaskForm.prodPerson}"/></td>
								</tr>
								<tr>
									<td>发起时间从：</td>
									<td><input name="flowTaskForm.startTime" size="28"  type="text" value="${flowTaskForm.startTime}" onFocus="WdatePicker({isShowClear:true,readOnly:true})"/></td>
									<td>至：</td>									
				                    <td><input name="flowTaskForm.endTime" size="28"  type="text" value="${flowTaskForm.endTime}" onFocus="WdatePicker({isShowClear:true,readOnly:true})"/></td>
								</tr>
								<tr>
									<td>结束状态：</td>
									<td>
										<select name="flowTaskForm.state" >
											<option value="">全部</option>
											<option value="1" <c:if test="${1 eq flowTaskForm.state}"> selected="selected"</c:if>>未结束</option>
										</select>
									</td>
									<td></td>
									<td>  <input type="button" name="search" onclick="subNoValidateForm(document.forms[0],'newBusinessReq_findHisAppReqList.action');"  value="查 询">
													  <input type="button" name="search" onclick="subNoValidateForm(document.forms[0],'newBusinessReq_outAppList.action?type=${flowTaskForm.isPerson}');"  value="导 出">
									</td>
								</tr>
							</table>
							</form>
							<table width="98%" border="0" cellspacing="0" cellpadding="7"
								align="center" class=tablecolor2>
								<tr>
									<td bgcolor="9AC2EB" width="11%">
									<div align="center"><font color="#FFFFFF">需求单号</font></div>
									</td>
									<td bgcolor="9AC2EB" width="*">
									<div align="center"><font color="#FFFFFF">需求名称</font></div>
									</td>
									<td bgcolor="9AC2EB" width="8%">
									<div align="center"><font color="#FFFFFF">发起部门</font>
									</div>									
									</td>									
									<td bgcolor="9AC2EB" width="8%">
									<div align="center"><font color="#FFFFFF">发起人</font>
									</div>
									</td>
									
									<td bgcolor="9AC2EB" width="8%">
									<div align="center"><font color="#FFFFFF">产品经理</font>
									</div>
									</td>
									<td bgcolor="9AC2EB" width="10%">
									<div align="center"><font color="#FFFFFF">当前状态</font>
									</div>
									</td>
									<td bgcolor="9AC2EB" width="8%">
									<div align="center"><font color="#FFFFFF">办理人</font>
									</div>
									</td>
									<td bgcolor="9AC2EB" width="11%">
									<div align="center"><font color="#FFFFFF">发起时间</font>
									</div>
									</td>
									<td bgcolor="9AC2EB" width="8%">
									<div align="center"><font color="#FFFFFF">业务标签</font>
									</div>
									</td>									
									<td bgcolor="9AC2EB" width="10%">
									<div align="center"><font color="#FFFFFF">操作</font></div>
									</td>	
								</tr>
							<s:iterator value="#request.bsReqlist">
								  <tr <s:if test="isValidDate=='true'">class="validDateTr"</s:if>>
									<td>
										<div style="text-align: center"><s:property value="reqCode" /></div>
									</td>
									<td>
										<s:if test="isValidDate=='true'">
											<div class="vtip" title="超期未完成">
											<img src="<s:url value="/images/new/warning_16.png"/>" border="0"/>
											<s:property value="name" />
											</div>
										</s:if>
										<s:else>
											<s:property value="name" escape="false"/>
										</s:else>
									</td>
									<td>
										<s:property value="startDept" />
									</td>									
									<td>
										<div align="center"><s:property value="startPerson" /></div>
									</td>
									
									<td>
										<s:property value="prodPerson.name" />
									</td>
									<td>
										<s:property value="currStatus" />
									</td>
									<td>
										<s:property value="currUser" />
									</td>
									<td>
										<div align="center"><s:date name="begin" format="yyyy-MM-dd"/></div>
									</td>
									<td>
										<s:property value="businessTag" />
									</td>									
									<td>
									<div align="center">
									
										<s:if test="urlType=='02'">
										<a href="<s:url value="/bpm/flowReq_showInfo.action?procinstId="/><s:property value="procinstId" />&reqId=<s:property value="id" />">查看</a>
										</s:if>
										<s:elseif test="urlType=='03'">
										<a href="<s:url value="/bpm/flowContractInfo_showInfo.action?procinstId="/><s:property value="procinstId" />&reqId=<s:property value="id" />">查看</a>
										</s:elseif>
										<s:elseif test="urlType=='04'">
										<a href="<s:url value="/bpm/flowSms_showInfo.action?procinstId="/><s:property value="procinstId" />&reqId=<s:property value="id" />">查看</a>
										</s:elseif>
										<s:elseif test="urlType=='05'">
										<a href="<s:url value="/bpm/opMeetingProtocol.do?action=showInfo&procinstId="/><s:property value="procinstId" />&reqId=<s:property value="id" />">查看</a>
										</s:elseif>
										<s:elseif test="urlType=='06'">
										<a href="<s:url value="/bpm/opProductFlow.do?action=showInfo&procinstId="/><s:property value="procinstId" />&reqId=<s:property value="id" />">查看</a>
										</s:elseif>
										<s:else>
										<a href="<s:url value="/bpm/newBusinessReq_showInfo.action?procinstId="/><s:property value="procinstId" />&reqId=<s:property value="id" />">查看</a>
										</s:else>
										<a href="flowTaskCommon_printInstGraph.action?procinstId=<s:property value="procinstId" />" target="_blank">轨迹</a>
									</div>
									</td>
								</tr>
							</s:iterator>
							</table>
							<%-- 
							&nbsp;注：<img src="<s:url value="/images/new/warning_16.png"/>" />表示需求单超期未完成
							--%>
							<div style="text-align: center">${pageNaviStr }</div>
							</td>
						</tr>
						<tr>
							<td height="5">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td width="5" height="5"><img src="<s:url value="/images/cphdzx_tab3.gif"/>" width="5" height="5" /></td>
										<td class="tdborderbottom"><img src="<s:url value="/images/spacer.gif"/>" width="1" height="1" /></td>
										<td width="5"><img src="<s:url value="/images/cphdzx_tab4.gif"/>" width="5" height="5" /></td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
</body>
</html>